<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改</title>
</head>
<body>

<form th:action="@{/user/update}" method="post">
    <input type="hidden" name="userId" th:value="${user.userId}">
    姓名：<input type="text" name="userName" th:value="${user.userName}"/><br/>
    密码：<input type="text" name="password" th:value="${user.password}"/><br/>
    用户类型：<input type="radio" name="userType" value="1" th:attr="checked=${user.userType==1?true:false}"/>普通用户
    <input type="radio" name="userType" value="2" th:attr="checked=${user.userType==2?true:false}"/>管理员<br/>
    角色：<input type="radio" name="roleId" value="1" th:attr="checked=${user.roleId==1?true:false}"/>开发人员
    <input type="radio" name="roleId" value="2" th:attr="checked=${user.roleId==2?true:false}"/>测试人员<br/>

    描述信息：<input type="text" name="userDescription" th:value="${user.userDescription}"/><br/>
    <input type="submit" value="确定"/><br/>
</form>

</body>
</html>